﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace ModelLayer
{
    [DataContract]
    public class User
    {
        [DataMember]
        public int UserId { get; set; }
        [DataMember]
        public string FName { get; set; }
        [DataMember]
        public string LName { get; set; }
        [DataMember]
        public string UserName { get; set; }
        [DataMember]
        public string Email { get; set; }
        [DataMember]
        public List<User> Friends { get; set; }

        public User()
        {
            this.Friends = new List<User>();
        }

        public User(string fname, string lname, string uname, string email)
        {
            FName = fname;
            LName = lname;
            UserName = uname;
            Email = email;

        }

    }

}
